package command.light;import command.Command;/** * Created by Administrator on 2018-10-24. */public class LightOffCommand implements Command {    Light light;    public LightOffCommand(Light light){        this.light =light;    }    public void execute() {        light.off();    }    public void Undo() {       light.on();    }}